package com.csl.ws.hotel.dao;

import org.springframework.stereotype.Repository;

import com.csl.ws.hotel.po.JiryInfo;
import com.csl.ws.hotel.po.RecInfo;

@Repository
public class JiryDaoImpl extends CommonDao implements JiryDao {
	
	@Override
	public JiryInfo selectById(String id) {
		return getSqlSession().selectOne("com.csl.ws.hotel.po.JiryInfo.selectJiryById",id);
	}

	@Override
	public int insertJiry(JiryInfo jiInfo) {
		return getSqlSession().insert("com.csl.ws.hotel.po.JiryInfo.insertJiry", jiInfo);
	}

	@Override
	public int insertJiry4Out(RecInfo recInfo) {
		return getSqlSession().insert("com.csl.ws.hotel.po.RecInfo.insertRecInfo", recInfo);
	}

	@Override
	public int deleteJiryById(String ryId) {
		return getSqlSession().delete("com.csl.ws.hotel.po.JiryInfo.deleteJiryById", ryId);
	}

	@Override
	public RecInfo selectRecById(String id) {
		return getSqlSession().selectOne("com.csl.ws.hotel.po.RecInfo.selectRecById",id);
	}

}
